package homework_03;

import java.util.Scanner;

/**
 * 三个数字排序
 */
public class Test_10 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入正整数");
        int x = sc.nextInt();
        System.out.println("请输入正整数");
        int y = sc.nextInt();
        System.out.println("请输入正整数");
        int z = sc.nextInt();
        if(x>y){//将较大的数放在y
            x = x + y;
            y = x - y;
            x = x - y;
        }
        if(y>z){//将较大的数放在z
            y = y + z;
            z = y - z;
            y = y - z;
        }
        if(x>z){//将较大的数放在z
            x = x + z;
            z = x - z;
            x = x - z;
        }
        if(x>y){//将较大的数放在y
            x = x + y;
            y = x - y;
            x = x - y;
        }
        System.out.println(x + "<" + y + "<" + z);
    }
}
